package net.lcheng.service.impl;

import net.lcheng.dao.OOrderRefundMapper;
import net.lcheng.model.OOrderRefund;
import net.lcheng.model.OOrderRefundExample;
import net.lcheng.service.OOrderRefundService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * Created by zwr on 2016/7/18 0018.
 */
@Service
public class OOrderRefundServiceImpl implements OOrderRefundService {
    @Resource
    private OOrderRefundMapper oOrderRefundMapper;

    @Override
    public List<OOrderRefund> getOOrderRefundBybuyerUserId(String buyerUserId) {
        OOrderRefundExample example=new OOrderRefundExample();
        example.or().andBuyerUserIdEqualTo(buyerUserId);
        return oOrderRefundMapper.selectByExample(example);
    }
}
